package util;

import java.io.IOException;
import java.util.List;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class JSONUtil {
private static ObjectMapper mapper = new ObjectMapper();
	
	public static String toJSON(List<String> areaList){
		String result = null;
		try {
			result = mapper.writeValueAsString(areaList);
		} catch (JsonProcessingException e) {
			e.printStackTrace();
		}
		return result;
	}


}
